<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();$(this).attr("onclick","");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>       
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/trade/supplement");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("addWithDrawOffLine"); ?></span></div>
      <div class="right_form_content">
            <div class="centerbig_right">
               <div class="form_content">
                    <form action="<?php echo $this->form->getAction(); ?>" method="post">
                        <?php ZendFormUtil::renderElement($this->form->trade_num); ?>
                        <?php ZendFormUtil::renderElement($this->form->user_id); ?>
                        <?php ZendFormUtil::renderElement($this->form->trade_sum); ?>
                        <?php ZendFormUtil::renderElement($this->form->supplement_type); ?>
                        <?php ZendFormUtil::renderElement($this->form->out_id); ?>
                        <?php ZendFormUtil::renderElement($this->form->out_name); ?>
                        <?php ZendFormUtil::renderElement($this->form->in_id); ?>
                        <div class="form_line_div">
                        <div class="form_element_label"><?php echo $this->translate("out_date"); ?></div>
                        <div class="form_element">
						<input type="text" name="out_date" id="out_date" size="10" readonly="readonly" />
						                    <select name="out_date_hour">
						                        <?php
						                            for($i=0;$i<=23;$i++){
						                                $selected = "";
						                                if($i  == $this->out_date_hour){
						                                    $selected = "selected='selected'";
						                                }
						                                echo "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>";
						                            } 
						                        ?>
						                    </select>
						                    :
						                    <select name="out_date_minute">
						                        <?php
						                            for($i=0;$i<=59;$i++){
						                                $selected = "";
						                                if($i  == $this->out_date_minute){
						                                    $selected = "selected='selected'";
						                                }
						                                echo "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>";
						                            } 
						                        ?>
						                    </select>
						                        <div class='form_element_error'>
						                            <?php
						                                echo ZendFormUtil::renderErrorMessage($this->form->out_date);
						                            ?>
						                        </div>
                                  </div>
                               </div>                        
                    </form>
               </div>
            </div>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>
<script type="text/javascript">
     $('#out_date').datepicker({
         changeMonth: true,
         changeYear: true,
         dateFormat: 'yy-mm-dd'
     });
</script>